package edu.aysf;

import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;

/*
 * @Author 郑老师
 * @Version: 1.0
 * @Desc
 * @Date 2024-11-28 23:59
 * @Update
 */
// 日志注解
@Slf4j
// 服务调用
//@EnableFeignClients
// 服务注册
@EnableDiscoveryClient
//@SpringBootApplication(scanBasePackages = "edu.aysf")
@SpringBootApplication
@MapperScan("edu.aysf.dao")
public class DoctorApp {
    public static void main(String[] args) {
        SpringApplication.run(DoctorApp.class, args);
    }

//    @Bean
//    public MybatisPlusInterceptor mybatisPlusInterceptor() {
//        MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
//        // 添加分页拦截器  mybatis-plus 3.5.9 没有这个类
//        interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL));
//        return interceptor;
//    }

}
